Window.ShowModal Method

Displays the window and causes the current method to stop executing until the window closes or becomes invisible.

Syntax